import request from "@/utils/request";

// 定位列表
export function locationList(data) {
  return request({
    url: "/virlib-admin/location/query",
    method: "post",
    data,
  });
}

// 增加定位
export function addLocation(data) {
  return request({
    url: "/virlib-admin/location",
    method: "put",
    data,
  });
}

// 修改定位
export function editLocation(data) {
  return request({
    url: "/virlib-admin/location",
    method: "post",
    data,
  });
}

// 删除定位
export function deleteLocation(assetId, alId) {
  return request({
    url: `/virlib-admin/location/${assetId}/${alId}`,
    method: "delete",
  });
}
